From 18c487ecaba405cc97bfc1574f64a2087d8c667a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 13 Oct 2025 14:35:56 +0200 Subject: [PATCH] x32: set panic strategy to aborting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit x32 lacks libunwind support Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic behaviour Gbp-Pq: Name x32-set-panic-strategy-to-aborting.patch --- .../src/spec/targets/x86_64_unknown_linux_gnux32.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnux32.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnux32.rs index c5d556e5cc..e24fa7fc11 100644 --- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnux32.rs +++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnux32.rs @@ -1,4 +1,4 @@ -use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetMetadata, base}; +use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, StackProbeType, Target, TargetMetadata, base}; pub(crate) fn target() -> Target { let mut base = base::linux_gnu::opts(); @@ -11,6 +11,7 @@ pub(crate) fn target() -> Target { // BUG(GabrielMajeri): disabling the PLT on x86_64 Linux with x32 ABI // breaks code gen. See LLVM bug 36743 base.plt_by_default = true; + base.panic_strategy = PanicStrategy::Abort; Target { llvm_target: "x86_64-unknown-linux-gnux32".into(), -- 2.30.2